package com.ecommerce.dal.common;

import com.ecommerce.dal.entity.Rank;
import com.ecommerce.dal.service.impl.RankManagerService;

public class TestRank {

	public TestRank(RankManagerService rankManagerService) {
		Rank rank = new Rank();
		//rank.setRankId(1);
		rank.setRankName("Bronze");
		rank.setPaymentAmount(20);
		rank.setPaymentPeriod("30 days");
		rankManagerService.saveRank(rank);
		System.out.println(rank);
		System.out.println("Done");
//		
		Rank rank2 = rankManagerService.retrieveRank(1);
		System.out.println("Rank "+rank2.getRankName()+"'s price is "+rank2.getPaymentAmount());
	}

}
